package com.liruo.learn.spring.mvc.controller.valid;

import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.validation.Valid;

/**
 * @Author:liruo
 * @Date:2023-05-10-14:08:56
 * @Desc
 */
@RequestMapping("/interface-valid")
public interface InterfaceValidController {
    @GetMapping("/validated")
    void f1(@Validated ValidBean bean);
    @GetMapping("/valid")
    void f2(@Valid ValidBean bean);
}
